package com.bio.dao.user;

import com.bio.dao.Dao;
import com.bio.entity.user.User;
import com.bio.utils.Pager;
import com.bio.utils.Pagination;

public interface UserDAO extends Dao<User>{
	
	public User login(String userName, String password);
	
	public Pager<User> findPagerByCompanyId(Pagination pagination, Long companyId);
	
	public void removeUsersByCompany(Long companyId);
	
	public void removeUsersByPosition(Long positionId);
	
	public User getUserByNameAndCompany(String name, Long companyId);
	
	public int countUsersByName(final String userName, final Long id);
	
	public int countUsersByMail(final String mail, final Long id);
	
	public User getUserByEmail(String email);
}
